<template>
    <div>
        测试v-if 触发生命钩子函数
    </div>
</template>

<script>
export default {
    created() {
        console.log("v-if created");
    },
    beforeMount() {
        console.log("v-if beforeMount");
    },
    mounted() {
        console.log("v-if mounted");
    },
    beforeUpdate() {
        console.log("v-if beforeUpdate");
    },
    updated() {
        console.log("v-if updated");
    },
    beforeDestroy() {
        console.log("v-if beforeDestroy");
    },
    destroyed() {
        console.log("v-if destroyed");
    },
}
</script>

<style lang="scss" scoped>

</style>